home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
MiscKit1.7.1
/
MiscKit
/
Palettes
/
MiscProgressPalette
/
MiscProgressPieInspector.m
< prev
next >
Wrap
Text File
|
1995-04-12
|
1KB
|
56 lines
//
// MiscProgressPieInspector.m -- a simple view class for displaying progress
// Written and Copyright (c) 1993 by James Heiser. (jheiser@adobe.com)
// Version 1.0. All rights reserved.
//
// This notice may not be removed from this source code.
//
// This object is included in the MiscKit by permission from the author
// and its use is governed by the MiscKit license, found in the file
// "LICENSE.rtf" in the MiscKit distribution. Please refer to that file
// for a list of all applicable permissions and restrictions.
//
#import "MiscProgressPieInspector.h"
#import "MiscProgressView.subproj/MiscProgressPie.h"
@implementation MiscProgressPieInspector
- init
{
char buf[MAXPATHLEN + 1];
id bundle;
[super init];
bundle = [NXBundle bundleForClass:[MiscProgressPie class]];
[bundle getPath:buf
forResource:"MiscProgressPieInspector"
ofType:"nib"];
[NXApp loadNibFile:buf
owner:self
withNames:NO
fromZone:[self zone]];
return self;
}
- ok:sender
{
[object setHidden:[theCheckBox intValue]];
return [super ok:sender];
}
- revert:sender
{
[theCheckBox setState:[object isHidden]];
return [super revert:sender];
}
- (BOOL)wantsButtons
{
return NO;
}
@end